<script src="__ADDONS__/editor/kindeditor/kindeditor-all-min.js"></script>
<script src="__ADDONS__/editor/kindeditor/lang/zh-CN.js"></script>
<script>
    KindEditor.ready(function (K) {
        window.editor = K.create('#{$id}', {
            height: '400px',
            uploadJson: '__ADDONS__/editor/kindeditor/php/upload_json.php',
            fileManagerJson: '__ADDONS__/editor/kindeditor/php/file_manager_json.php',
            allowFileManager: true,
            afterBlur: function () {
                this.sync();
            }
        });
    });
</script>